package com.atguigu.common;

/**
 * @Author panghl
 * @Date 2020/12/25 16:43
 * @Description 返回状态码
 **/
public enum ResultCode {

  SUCCESS(20000,"成功"),
  ERROR(20001,"失败");

  private Integer code;
  private String name;

  ResultCode(Integer code,String name) {
    this.code = code;
    this.name = name;
  }

  public Integer getCode() {
    return code;
  }

  public String getName() {
    return name;
  }

}
